<?
include_once "../conn.php";
include_once "index.php";

if(isset($submit))
{
$from = "From: $_SERVER[HTTP_HOST] <$aset[ContactEmail]>";

//mail($email, $subject, $message, $from);

echo "<br><br><br><center><span class=BlackLink>The message to $email was send successfully.</span>";

include_once('../footer.php');
exit;
}

?>

<form method=post>
<table align=center width=400 class=BlackLink>
<tr>
	<td align=right> <b> To: </b></td>
	<td> <?=$email?> </td>
</tr>

<tr>
	<td align=right><b> Subject: </b></td>
	<td> <input type=text name=subject size=35></td>
</tr>

<tr>
	<td valign=top align=right><b>Message: </b></td>
	<td><textarea name=message rows=6 cols=30></textarea></td>
</tr>
<tr>
	<td align=left>
	<input type=hidden name=email value=<?=$email?>>
	<input type=submit name=submit value=Send></td>
	<td align=right><input type=reset></td>
</tr>
</table>
</form>

<? include_once('../footer.php'); ?>